<!DOCTYPE html>
<html>
{% load static %}
<head>

    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="author" content="DeathGhost" />
    <link rel="stylesheet" type="text/css" href="{% static 'admin/css/style.css' %}">

    <!--[if lt IE 9]>
    <script src="{% static 'admin/js/html5.js' %}"></script>
    <![endif]-->
     <script type="text/javascript" src="../../static/js/ie6.js"></script>
    <script src="{% static 'admin/js/jquery.js' %}"></script>
    <script src="{% static 'admin/js/jquery.mCustomScrollbar.concat.min.js' %}"></script>

    <!-- Toastr style -->
    <link rel="stylesheet" type="text/css" href="{% static 'css/plugins/toastr/toastr.min.css' %}">
    <!-- Gritter -->
    <link rel="stylesheet" type="text/css" href="{% static 'css/plugins/toastr/toastr.min.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'admin/js/plugins/gritter/jquery.gritter.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/plugins/sweetalert/sweetalert.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'admin/css/index.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'font-awesome/css/font-awesome.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'css/animate.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/newstyle2.css' %}">

     <link rel="stylesheet" type="text/css" href="{% static 'css/plugins/summernote/summernote.css' %}">
     <link rel="stylesheet" type="text/css" href="{% static 'css/plugins/summernote/summernote-bs3.css' %}">

</head>

<body>
<header>
 <h1><img src="{% static 'admin/images/admin_logo.png' %}"/></h1>
 <ul class="rt_nav">
  <li><a href="{% url 'Admin:admin_index' %}" target="_blank" class="website_icon">站点首页</a></li>
  <li><a href="{% url 'Admin:admin.logout' %}" class="quit_icon">安全退出</a></li>
 </ul>
</header>
<aside class="lt_aside_nav content mCustomScrollbar">
 <h2><a href="#">超级管理员：&nbsp;{{ userinfo.username }}</a></h2>
 <ul>
   <li>
   <dl>
    <!--当前链接则添加class:active-->
    <dt>图片管理</dt>
    <dd><a href="{% url 'Admin:imagemanage' %}"  >图片上传</a></dd>
   </dl>
  </li>
  <li>
  <dl>
    <!--当前链接则添加class:active-->
    <dt>商品管理</dt>
     <dd><a href="{% url 'Admin:addproduct' %}"class="active1">商品添加</a></dd>
    <dd><a href="{% url 'Admin:categorym' %}">种类添加</a></dd>
    <dd><a href="{% url 'Admin:product_list' %}">商品列表</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>订单管理</dt>
    <dd><a href="#">订单列表</a></dd>
    <dd><a href="#">订单详情</a></dd>
   </dl>
  </li>

  <li>
   <p class="btm_infor">© YeQin 版权所有</p>
  </li>
 </ul>
</aside>
<section class="rt_wrap content mCustomScrollbar">
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-9">
                    <h2>商品管理</h2>
                    <ol class="breadcrumb">
                        <li class="active">
                            <strong>添加产品</strong>
                        </li>
                    </ol>
                </div>
            </div>
            <div class="wrapper wrapper-content animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" id="ishow-form">
                                    {% csrf_token %}
                                    <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">商品种类</label>
                                        <div class="col-sm-10">
                                              <select class="form-control m-b f-sec-type" name="f-sec-type">
            	                                {% for category in categorys %}
            	                                <option value="{{category.cid}}">{{category.kind}}</option>
                                                {% endfor %}
                                             </select>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">产品名称</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="proname" required="" value="">
                                        </div>
                                    </div>
                                     <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">产品介绍</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="proname2" required="" >
                                        </div>
                                    </div>

                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">产品价格</label>
                                        <div class="col-sm-10">
                                            <input type="number" class="form-control" name="proprice" required="">
                                        </div>
                                    </div>

                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">产品折扣</label>
                                        <div class="col-sm-10">
                                            <input type="number" class="form-control" name="discount">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">产品图链接</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" name="imglink">
                                        </div>
                                        <button class="btn btn-primary new-imgurl" type="button">
                                            添加
                                        </button>
{#                                        <button class="btn btn-primary new-ishow" type="button">#}
{#                                            <a href="{% url 'Admin:imagemanage' %}">图库</a>#}
{#                                        </button>#}
                                         <button class="btn btn-primary new-ishow" type="button">
                                            <a href="{% url 'Admin:imagemanage' %}">图库</a>
                                        </button>


                                        <div class="image-list-wrp">

                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>

                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <input class="btn btn-primary new-pro" type="button" value="新增产品">
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
</div>
</section>


<!-- Mainly scripts -->

<script src="{% static 'js2/jquery-2.1.1.js' %}" type="text/javascript"></script>
<script src="{% static 'js2/bootstrap.js' %}" type="text/javascript"></script>
<script src="{% static 'js2/jquery.metisMenu.js' %}" type="text/javascript"></script>
<script src="{% static 'js2/jquery.slimscroll.min.js' %}" type="text/javascript"></script>


<!-- Flot -->
<script src="{% static 'admin/js/plugins/flot/jquery.flot.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/plugins/flot/jquery.flot.tooltip.min.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/plugins/flot/jquery.flot.spline.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/plugins/flot/jquery.flot.resize.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/plugins/flot/jquery.flot.pie.js' %}" type="text/javascript"></script>

<!-- Peity -->
<script src="{% static 'admin/js/plugins/peity/jquery.peity.min.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/demo/peity-demo.js' %}" type="text/javascript"></script>


<!-- Custom and plugin javascript -->
<script src="{% static 'js2/inspinia.js' %}" type="text/javascript"></script>
<script src="{% static 'js2/pace.min.js' %}" type="text/javascript"></script>

<!-- jQuery UI -->
<script src="{% static 'admin/js/plugins/jquery-ui/jquery-ui.min.js' %}" type="text/javascript"></script>

<!-- GITTER -->
<script src="{% static 'admin/js/plugins/gritter/jquery.gritter.min.js' %}" type="text/javascript"></script>

<!-- Sparkline -->
<script src="{% static 'admin/js/plugins/sparkline/jquery.sparkline.min.js' %}" type="text/javascript"></script>


<!-- Sparkline demo data  -->
<script src="{% static 'admin/js/demo/sparkline-demo.js' %}" type="text/javascript"></script>


<!-- ChartJS-->
<script src="{% static 'admin/js/plugins/chartJs/Chart.min.js' %}" type="text/javascript"></script>

<!-- Toastr -->
<script src="{% static 'admin/js/plugins/toastr/toastr.min.js' %}" type="text/javascript"></script>

<!-- FooTable -->

<script src="{% static 'admin/js/plugins/footable/footable.all.min.js' %}" type="text/javascript"></script>
<script src="{% static 'admin/js/plugins/sweetalert/sweetalert.min.js' %}" type="text/javascript"></script>


<script src="{% static 'admin/js/addproduct.js' %}" type="text/javascript"></script>



</body>
</html>



